package com.jdwx.opengl.kotlin
annotation class Marker
annotation class MyAnnotation1(val value: String)
annotation class MyAnnotation2(val value: String = "注解信息", val count: Int = 20)
@Marker     // 1
class Person2 {
    // 名字
    @MyAnnotation1(value = "名字")        // 2
    @JvmField
    var name = "Tony"

    // 年龄
    @MyAnnotation2(value = "年龄")        // 3
    var age = 18

    fun ab(){
    }
}

@Marker     // 4
fun main(args: Array<String>) {
    @Marker     // 5
    @MyAnnotation2(value = "实例化Person", count = 1)      // 6
    val p = Person2()


    println( p.age )
}